home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gCurrentCastNum, gEndCoin, gStartCoin
- puppetSound("newclick.aif")
- set the ink of sprite the clickOn to 4
- updateStage()
- repeat while the stillDown or soundBusy(1)
- end repeat
- set the ink of sprite the clickOn to 36
- updateStage()
- puppetSprite(20, 0)
- if gCurrentCastNum > gStartCoin then
- set gCurrentCastNum to gCurrentCastNum - 1
- set the castNum of sprite 20 to gCurrentCastNum
- put the castNum of sprite 20
- else
- set gCurrentCastNum to gEndCoin
- set the castNum of sprite 20 to gCurrentCastNum
- put gCurrentCastNum
- end if
- updateStage()
- end
-